:root {
    --left-div-width: 200px;
    --right-div-width: 400px;
    --interval-width: 10px;
    --head-div-height: 50px;

    --main-color: rgba(25, 30, 33, 0.65);
    --main-color-dark: rgb(25, 30, 33);

    --dropdown-menu-color: rgba(25, 30, 33, 0.9);
    --dropdown-menu-li-hover-color: rgba(29, 69, 91, 0.35);

    --container-title-height: 50px;
    --container-title-font-size: 18px;

    --status-green-color: rgb(41, 180, 41);
    --status-yellow-color: #ffc943;
    --status-red-color: #de1616;

    --status-value-color: #fdfc83;
    --status-label-color: #eee;
}

html {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    background: #fff;
    width: 100%;
    height: 100%
}

a {
    text-decoration: none;
}

#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*下面2个样式 用来关闭number状态下的2个箭头*/
input[type='number'] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
}

.ol-popup {
    position: absolute;
    top: calc(var(--head-div-height) + var(--interval-width));
    right: var(--interval-width);
    padding: 0 10px;
}

.ol-attribution, .ol-control-logo {
    display: none;
}

.ol-zoom {
    bottom: 0.5em;
    right: 0.5em;
    left: inherit;
    top: inherit;
}

.head {
    width: calc(100% - var(--left-div-width));
    height: var(--head-div-height);
    position: fixed;
    top: 0;
    left: var(--left-div-width);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, var(--main-color) 100%);
    z-index: 2;
    display: flex;
    backdrop-filter: blur(4px);
    /*color: #000;*/
}

.head > .title {
    flex: 1;
    text-align: center;
    font-size: 36px;
    line-height: var(--head-div-height);
    font-weight: 700;
    user-select: none;
    letter-spacing: 10px;
}

.user-info {
    height: var(--head-div-height);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    padding: 15px 15px;
    box-sizing: border-box;
    margin-right: 1px;
}

.user-info > .profile {
    float: left;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    margin-right: 8px;
    margin-top: -3px;
}

.user-info > span {
    font-weight: 600;
}

.right {
    width: var(--right-div-width);
    height: calc(100% - var(--head-div-height) - 2 * var(--interval-width));
    position: fixed;
    top: calc(var(--head-div-height) + var(--interval-width));
    background: var(--main-color);
    z-index: 1;
    user-select: none;
}

.right .content {
    padding: 0 !important;
    height: calc(100% - 1px - var(--container-title-height));
    overflow-y: auto;
    overflow-x: hidden;
}

.right .content .charts .row {
    display: flex;
    height: 200px;
}

.right .content .data-time {
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
}


.right .content .charts .row > div {
    flex: 1
}

.right .content .charts .row > div:last-child {
    margin-left: -20px
}


.right .content .values {
    padding: 0 20px;
    margin-top: 10px;
    font-size: 14px;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.7);
}

.right .content .values .row {
    display: flex;
    height: 40px;
    line-height: 40px;
    color: #fff;
    /*padding: 2px 0;*/
}


.right .content .values .row .value {
    display: flex;
    flex: 1;
}

.right .content .values .row .value:last-child {
    margin-left: 20px;
}

.right .content .values .row .value .label {
    /*width: 38px;*/
    margin-right: 3px;
    color: var(--status-label-color);
}

.right .content .values .row .value .line {
    flex: 1;
    margin: 10px 3px;
    color: var(--status-value-color);
}

.right .content .values .row .value .val {
    width: 45px;
    text-align: right;
    color: var(--status-value-color);
}

.right .buttons {
    height: 40px;
    display: flex;
    margin: 10px 0 15px 0;
}

.right .buttons button {
    height: 45px;
    /*background-color: #1ab394;*/
    background-color: #17699d;
    color: #fff;
    border-radius: 3px;
    flex: 1;
    margin-left: 20px;
    border: 0;
    outline: 0;
    font-size: 16px;
    cursor: pointer;
}

.right .buttons button:hover {
    /*background-color: #19967c;*/
    background-color: #14547c;
}

.right .buttons button:active {
    /*background-color: #19967c;*/
    background-color: #112960;
}

.right .buttons button:last-child {
    margin-right: 20px;
}

.middle {
    width: calc(100% - var(--left-div-width) - 2 * var(--interval-width));
    height: calc(100% - var(--head-div-height) - 2 * var(--interval-width));
    position: fixed;
    top: calc(var(--head-div-height) + var(--interval-width));
    left: calc(var(--left-div-width) + var(--interval-width));
    background: var(--main-color);
    z-index: 1;
}

.container {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    backdrop-filter: blur(4px);
    box-shadow: 1px 2px 6px var(--main-color);
}

.container > .row {
    display: flex;
    border-bottom: 1px solid #888;
}

.container .title {
    flex: 1;
    height: var(--container-title-height);
    border-top-left-radius: 10px;
    line-height: var(--container-title-height);
    padding: 0 20px;
    font-size: var(--container-title-font-size);
    color: #fff;
    /*background: var(--main-color-dark);*/
    background: linear-gradient(90deg, rgba(22, 25, 42, 0.5) 0%, rgba(22, 25, 42, 0) 100%);
    user-select: none;
}

.container-small .title {
    height: calc(var(--container-title-height) * 3 / 4);
    line-height: calc(var(--container-title-height) * 3 / 4);
    font-size: calc(var(--container-title-font-size) * 3 / 4);
}


.container .row .title i {
    margin-right: 10px;
}

.container .close {
    width: var(--container-title-height);
    height: var(--container-title-height);
    color: #aaa;
    line-height: var(--container-title-height);
    text-align: center;
    border-top-right-radius: 10px;
    /*background: var(--main-color-dark);*/
    cursor: pointer;
    font-size: 18px;
    font-weight: 300;
}
.container .close svg {
    margin-top: calc(var(--container-title-height) / 2 - 18px);
}

.container .close:hover svg path {
    fill: #fff;
}

.container .content {
    flex: 1;
    /*background: red;*/
    padding: 10px;
}

.container .content iframe {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.boat-info {
    width: 250px;
    min-height: 300px;
    border-radius: 10px;
    background: var(--main-color);
    position: fixed;
    left: 400px;
    top: 400px;
    text-shadow: rgba(0, 0, 0, 0.7) 1px 2px 2px;
    user-select: none;
}

.boat-info .content {
    padding: 15px;
}

.boat-info .content div {
    color: #fff;
    font-size: 14px;
    line-height: 26px;
}

.boat-info .content img {
    margin-top: 10px;
    width: 100%;
    border-radius: 4px;
}

.small-input {
    width: 100%;
    box-sizing: border-box;
    height: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    margin: 0;
    color: #fff;
    padding: 0 10px;
    outline: none;
    text-align: center;
}

.btn {
    outline: 0;
    cursor: pointer;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.428571429;
    border: 1px solid;
}

.btn-info {
    background-color: rgb(41, 180, 41);
    border-color: rgb(41, 180, 41);
    color: #fff
}

.btn-info:hover {
    background-color: rgb(33, 147, 33);
    border-color: rgb(33, 147, 33);
    color: #fff
}

.btn-info:active {
    background-color: rgb(64, 220, 64);
}

.btn-info.disabled, .btn-info.disabled:hover, .btn-info.disabled:focus, .btn-info.disabled:active, .btn-info.disabled.active, .btn-info[disabled], .btn-info[disabled]:hover, .btn-info[disabled]:focus, .btn-info[disabled]:active, .btn-info.active[disabled], fieldset[disabled] .btn-info, fieldset[disabled] .btn-info:hover, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:active, fieldset[disabled] .btn-info.active {
    background-color: #26d7d9;
    border-color: #26d7d9
}

.right .lights {
    /*height: 40px;*/
    margin: 5px 20px;
    display: flex;
}

.right .light {
    cursor: pointer;
    flex: 1;
    line-height: 30px;
    height: 30px;
    width: 30px;
    margin: 0 auto;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff;
    text-shadow: none;
}

.right .light-green {
    background-color: var(--status-green-color);
}

.right .light-yellow {
    background-color: var(--status-yellow-color);
}

.right .light-red {
    background-color: var(--status-red-color);
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: twinkling 1.2s infinite ease-in-out
}

@keyframes twinkling {
    0% {
        opacity: 0.1;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0.1;
    }
}